package com.douqu.game.core.e;

/**
 * Created by wangzhenfei on 2017/11/22.
 */
public enum E_StableDataType implements BaseEnum {

    ARENA_PASS_REWARD(10,"竞技场通关奖励"),
    ARENA_RULE_FREE_TIMES(20,"竞技场刷新规则和免费次数"),
    OFFICIAL_RANK_FREE_TIMES(30,"官阶战免费次数"),
    GOBLIN_FRESH_TIMES(40,"神秘商店每日刷新配置"),
    ARENA_BUY_PRICE(41,"竞技场购买价格"),
    EXPEDITION_BUY_PRICE(42,"远征商店刷新购买价格"),
    DIAMOND_BUY_PRICE(43,"钻石商店每日刷新配置"),
    VIP_STORE_BUY_PRICE(44,"VIP商店每日刷新配置"),
    HERO_TEMPLE(60,"英雄圣殿免费挑战次数"),
    REBIRTH_CARD_CONSUME(70,"英雄卡片重生消耗"),
    OFFICIAL_RANK_BUY_PRICE(80,"官阶战次数购买价格"),
    OPEN_FUND_PRICE(90,"开服基金购买价格和最低vip等级"),
    ARENA_MAP(100,"竞技场地图"),
    FIRST_RECHARGE(110,"首冲礼包"),
    RANDOM_CAMP_REWARD(130,"随机阵营奖励"),
    AUTO_BATTLE_VIP_LV(140,"自动战斗开启的VIP等级"),
    MASTER_TRAIN_NORMAL(150,"普通培养主将属性消耗"),
    MASTER_TRAIN_SENIOR(151,"高级培养主将属性消耗"),
    DAILY_RECHARGE_GIFT(160,"每日充值礼包"),
    CAMP_ACTIVITY_APPLY(170, "阵营活动费用和复活次数以及匹配等级差"),
    CAMP_ACTIVITY_REWARD(171, "阵营活动奖励和机器人数量配置以及阵营名次奖励加成"),
    COLLECT_PRODUCT(180, "采集产出和时长"),
    COLLECT_PRODUCT_EXP(181, "采集产出和经验"),
    COLLECT_GRAB_BASE_TIMES(182, "基础采集抢夺次数"),
    COLLECT_SENIOR(183, "高级采集消耗"),
    MAJOR_EXP(184, "专业技能经验加成"),
    MAJOR_MAP(185, "专业战地图"),
    MAJOR_ADD_PERCENT(186, "黄金十字镐加成比例"),
    MAX_GRAP_TIMES(187, "最大被抢夺药草次数"),
    GRAP_PERCENT(188, "每次被抢夺的百分比"),
    CAMP_BATTLE_MAP(190, "阵营战地图"),
    DIAMOND_MUCH_STABLE(200, "钻石十连抽固定中"),
    AUCTION_RECHARGE_DIAMOND(201,"最小充值钻石数"),
    BOSS_CHALLENGE_BUY(220,"BOSS战购买战斗次数价格"),
    BOSS_CHALLENGE_PRODUCT(221,"BOSS战产出物品ID"),
    EXPEDITION_CHALLENGE_TIMES_BUY(230,"远征挑战次数购买"),
    EXPEDITION_TOTAL_CHALLENGE_TIMES(231,"远征总次数上限"),
    EXPEDITION_FC_PASS_RATE(232,"远征战斗力跳过比例"),
    BOSS_ID_OFFSET(240,"BOSS难度配置偏移量"),
    RED_CARD_DISPLAY(250, "军团等显示红卡的玩家等级"),
    WORLD_MAP(260, "大地图相关配置"),
    CARD_START(270, "不同品质升星上限"),
    UPDATE_NAME_CONSUME(280, "修改玩家游戏名称消耗"),
    CUR_CRYSTAL(294,"水晶",true),
    CRYSTAL_GROW(295,"水晶增长",true),
    DEFAULT_PLAYER_HEAD(296,"玩家头像",true),
    FIRST_LOTTERY_REWARD(297,"首次钻石抽",true),
    GLOBAL_NOTICE_CONDITION(298,"全局消息通知条件",true),
    CAMP_ACTIVITY_AUCTION_REWARD(299,"阵营战拍卖道具",true),
    CAMP_ACTIVITY_AUCTION_REWARD_SHOW(300,"阵营战拍卖道具前端展示",true),
    RECOVER_ITEM(311,"战场·加血道具消耗数量"),
    REVIVE_NORMAL(312,"战场·普通复活消耗数量"),
    REVIVE_PERFECT(313,"战场·完美复活消耗数量"),
    REVIVE_WONDEFUL(314,"战场·至尊复活消耗数量"),
    REVIVE_TIME(315,"战场复活倒计时时间"),
    TASK_GROUP_ID(321,"任务初始化的GRPUPID"),
    HEGEMONY_CITY_VALUE(322,"城分数",true),
    HEGEMONY_WORSHIP_VALUE(323,"膜拜奖励"),
    HEGEMONY_REPEAT_PLAYER_MUL(324,"相同玩家衰减值",true),
    HEGEMONY_KILLANDKILL_VALUE(325,"诛杀分数",true),
    HEGEMONY_START_END_TIME(326,"争霸赛开启时间",true),
    HEGEMONY_MOPPINGUP_VALUE(327,"远征扫荡功能所需"),
    TALENT_ATK_CLEAR(328,"攻击类重置"),
    TALENT_DEF_CLEAR(329,"防御类重置"),
    TALENT_SLG_CLEAR(330,"策略类重置"),
    TALENT_CLEAR_LEVEL(331,"免费重置等级限制"),
    TALENT_LEVEL_UP(332,"天赋升级限制"),
    EAT_GRASS_ADD_EXP(333,"吃药草加对应的经验",true),
    EAT_DRUG_ADD_EXP(334,"吃药水加对应的经验",true),
    ;

    int code;

    String msg;

    /**
     * 是否忽略goods
     */
    boolean ignoreGoods;

    E_StableDataType(int code, String msg)
    {
        this.code = code;
        this.msg = msg;
    }

    E_StableDataType(int code, String msg, boolean ignoreGoods)
    {
        this.code = code;
        this.msg = msg;
        this.ignoreGoods = ignoreGoods;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public boolean isIgnoreGoods() {
        return ignoreGoods;
    }


    public static E_StableDataType forNumber(int code)
    {
        for(E_StableDataType stableDataType : values())
        {
            if(stableDataType.getCode() == code)
                return stableDataType;
        }
        return null;
    }

}
